package com.gameapplet.qrcode;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/Qrcode")
public class QrcodeController {
   /* final static String APPID = "wxfffb2a6c993b2249";
    final static String AppSecret ="234b4b49ee25a9415b5f64e825191d4f";

    @RequestMapping("/getQrcode")
    @ResponseBody
    public String getQrcode(HttpServletRequest req){
        String path=req.getServletContext().getContextPath();
               System.out.println(path);
               String realPath=req.getServletContext().getRealPath("/308f9c5457f22dafbe0c6f57242332f81530602563.png");
               System.out.println(realPath);
               ModelAndView mv = new ModelAndView("back/category/CategoryHome");
               return realPath;
    }*/
}


